/**********************************************************************************
// Asteroids Race 
//
// Creation:	07 Out 2009
// Updated:		18 Apr 2011
// Compiler:	Visual Studio 2010
//
// Notes:		GameTile
//
**********************************************************************************/

#include "Asteroids.h"

/**********************************************************************************/

void Asteroids::GameTitleLogic()
{
	// Space Bar 
	if (input.KeyPressRelease(DIK_SPACE))
	{
		snd.Play(INTRO,1);
		snd.Play(TRANSITION,0);
		prevState = gameState;
		gameState = PLEVEL1;
	}	
}

/**********************************************************************************/

void Asteroids::GameTitleDraw()
{
	// move stars with random velocity
	eSpace->MoveStars();
	
	// draw stars in new position
	eSpace->DrawStars();

	// draw text message
	sprintf_s(text, "<Space> - Start           <ESC> - Exit");
	sysFont->Draw(0, GetWindowHeight()-30, text, Color(255,255,255), GetWindowWidth(), 30, DT_CENTER);
}

/**********************************************************************************/
